#include"ThreadPool.hpp"
#include"Task.hpp"
using namespace ThreadPoolModule;

int main()
{
    Enable_Console_Log_Strategy();  //默认是向显示器打印
    ThreadPool<task_t> *str = new ThreadPool<task_t>();
    str->Start();
    int count = 10;
    while(count--)
    {
        sleep(1);
        str->Exqueue(DownLoad); //放任务
        // sleep(10);
        // str->HardHeader();  //处理任务
    }
    str->Stop();
    str->Join();
    return 0;
}